package dao

import (
	"fmt"
	"server_cluster/http/model"
)

func (d *Dao) GetAllUserInfo() ([]*model.User, error) {
	var users []*model.User
	err := d.db.Find(&users).Error
	if err != nil {
		fmt.Println("dao get user info error: ", err)
		return nil, err
	}
	return users, nil
}
